package com.fire.market.mapper;

import com.fire.market.entity.ItemStockDo;
import org.apache.ibatis.annotations.Param;

public interface ItemStockDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ItemStockDo record);

    int insertSelective(ItemStockDo record);

    ItemStockDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ItemStockDo record);

    int updateByPrimaryKey(ItemStockDo record);

    ItemStockDo selectByItemId(Integer itemId);

    int updateStockAndItemIdByAmount(@Param("itemId") Integer itemId, @Param("amount") Integer amount);
}